package org.ytor.core.sysapi.user.req;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.ytor.common.util.bean.Beans;
import org.ytor.core.model.BaseReq;
import org.ytor.core.sysapi.user.model.SysUser;

import java.util.List;

/**
 * created by   on 2025年4月9日 23:03:21
 * <br/>
 * UserReq表实体类
 * <br/>
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description = "用户表")
public class SysUserReq extends BaseReq<SysUser, String> {

    /**
     * 用户名
     */
    @Schema(description = "用户名")
    private String userName;

    /**
     * 真实姓名
     */
    @Schema(description = "真实姓名")
    private String realName;

    /**
     * 密码
     */
    @Schema(description = "密码")
    private String password;

    /**
     * 头像
     */
    @Schema(description = "头像")
    private String avatar;

    /**
     * 手机号码
     */
    @Schema(description = "手机号码")
    private String phone;

    /**
     * 邮箱
     */
    @Schema(description = "邮箱")
    private String email;

    /**
     * 生日
     */
    @Schema(description = "生日")
    private String birthday;

    /**
     * 身份证
     */
    @Schema(description = "身份证")
    private String idCard;


    /**
     * 是否删除
     */
    @Schema(description = "是否删除")
    private Boolean isDel;

    /**
     * 部门id数组
     */
    @Schema(description = "部门id数组")
    private List<String> departList;

    @Override
    public SysUser toEntity() {
        return Beans.copyProperties(this, SysUser.class);
    }
}